package com.example.sofa_module;

import com.example.base_application.BaseApplication;
import com.meituan.android.walle.WalleChannelReader;
import com.umeng.commonsdk.UMConfigure;
import com.umeng.socialize.PlatformConfig;

public class App extends BaseApplication {
    String channel="";
    @Override
    public void onCreate() {
        super.onCreate();
        channel = WalleChannelReader.getChannel(this);
        if (channel==null)
            channel = "test";
        UMConfigure.setLogEnabled(true);
        UMConfigure.init(this,UmengConst.UMENGKEY,channel,
                UMConfigure.DEVICE_TYPE_PHONE,UmengConst.UMENGSECRET);
        PlatformConfig.setSinaWeibo(UmengConst.SINAKEY,UmengConst.SINASECRET,
                UmengConst.SINABACKURL);
        PlatformConfig.setSinaFileProvider("com.example.sofa_module.fileprovider");

    }
}
